Closed Bug 1862505 Opened 2 years ago Closed 2 years ago

mar_create.c: do not use 'else' after 'return'

Categories

(Toolkit :: Application Update, task)

task

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: Sylvestre, Assigned: AAR.dev, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=C++])

Attachments

(1 file, 1 obsolete file)

Filling as a good first bug to learn workflows.

do not use 'else' after 'return':
https://searchfox.org/mozilla-central/source/modules/libmar/src/mar_create.c#253-259

As the change is trivial, it is just to learn how to contribute to Firefox.

Found by http://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Component: General → Application Update
Product: Core → Toolkit

I don't understand how I would choose the reviewer for something like this. I just have to add the commit message and push. So far I have:
Bug 1862505 - Removed unnecessary else statement. r?reviewer
How would I determine the reviewer? From running hg log modules/libmar/src/mar_create.c it seems I should make it r=Ehsan. Is that what I do?

put my name, this is fine :)

(In reply to Sylvestre Ledru [:Sylvestre] from comment #2)

put my name, this is fine :)

Sorry, so would I make it Bug 1862505 - Removed unnecessary else statement. r?Sylvestre Ledru [:Sylvestre]

Assignee: nobody → realstealthninja
Status: NEW → ASSIGNED

(In reply to aaoblivion from comment #3)

(In reply to Sylvestre Ledru [:Sylvestre] from comment #2)

put my name, this is fine :)

Sorry, so would I make it Bug 1862505 - Removed unnecessary else statement. r?Sylvestre Ledru [:Sylvestre]

edit: Nevermind I just used r=sylvestre

Comment on attachment 9365888 [details]
Bug 1862505 - removes the use of 'else' after 'return' r=nalexander

Revision D194900 was moved to bug 1862506. Setting attachment 9365888 [details] to obsolete.

Attachment #9365888 - Attachment is obsolete: true

I am really sorry for using the wrong bugzilla ID. It wont happen again. Sorry! how do i remove myself from assigned?

Assignee: realstealthninja → nobody
Status: ASSIGNED → NEW
Assignee: nobody → aaoblivion
Status: NEW → ASSIGNED
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/407939d190f9 Removed unnecessary else statement. r=sylvestre
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: